﻿<UserControl x:Class="OnlineVideos.CricketSummary"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
     xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">
    
    <Grid x:Name="LayoutRoot">
       
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="80"/>
            </Grid.RowDefinitions>
            <ScrollViewer Grid.Row="0">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="240" />
                        <ColumnDefinition Width="220" />
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.Row="0" Grid.ColumnSpan="2" Orientation="Vertical" Margin="0,0,0,10">
                        <TextBlock x:Name="tblkMatchResult" FontSize="30" Foreground="AntiqueWhite"/>

                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Grid.Row="1" Width="454" Grid.ColumnSpan="2" HorizontalAlignment="Left" Margin="0,0,0,20">
                        <TextBlock x:Name="tblkAinningssumary"   FontFamily="Comic Sans MS" Foreground="AntiqueWhite" FontSize="26" Width="230"/>
                        <TextBlock x:Name="txtTeamAtotal" Text="Total:" Margin="20,5,5,0" Foreground="AntiqueWhite" FontSize="24" Visibility="Collapsed"></TextBlock>
                        <TextBlock x:Name="tblkATotsumary"  Width="270"  Margin="2,5,0,0" Foreground="AntiqueWhite" FontSize="24" TextWrapping="Wrap"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="0" Margin="0,10,0,0">
                        <ListBox x:Name="lbxteamAsummary"  Margin="0,0,0,0" ScrollViewer.VerticalScrollBarVisibility="Disabled" Foreground="White">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <Grid Height="75">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="150"/>
                                            <ColumnDefinition Width="90"/>
                                        </Grid.ColumnDefinitions>
                                    <TextBlock Grid.Column="0" x:Name="txtblk" Text="{Binding PlayerName}" FontSize="24" TextWrapping="Wrap" Margin="0,0,0,0"/>
                                        <TextBlock Grid.Column="1" x:Name="txtblk2" Text="{Binding Runs}" FontSize="24" Margin="10,0,0,0"/>
                                    </Grid>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Grid.Row="2" Margin="0,0,0,0" Grid.Column="1">
                        <ListBox x:Name="lbxteamsummaryBbowling" Grid.Row="6" Margin="0,10,0,0" ScrollViewer.VerticalScrollBarVisibility="Disabled" Foreground="White">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <Grid Height="75">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="150"/>
                                            <ColumnDefinition Width="70"/>
                                        </Grid.ColumnDefinitions>
                                    <TextBlock Grid.Column="0" Text="{Binding PlayerName}" FontSize="24" TextWrapping="Wrap"/>
                                    <TextBlock Grid.Column="1" Text="{Binding Wickets}" FontSize="24"/>
                                        <TextBlock Grid.Column="1"  Text="/" FontSize="24" Margin="14,0,0,0"/>
                                    <TextBlock Grid.Column="1" x:Name="txtblk3" Text="{Binding Runs}" FontSize="24" Margin="24,0,0,0"/>
                                    </Grid>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Width="454" Grid.ColumnSpan="2"  HorizontalAlignment="Left" Grid.Row="3" Margin="0,20,0,20">
                        <TextBlock x:Name="tblkBsummaryinnings"  Margin="0,0,0,0" FontFamily="Comic Sans MS" Foreground="AntiqueWhite" FontSize="26" Width="230"/>
                        <TextBlock x:Name="txtTeamBtotal" Text="Total:" Margin="20,5,5,0" Foreground="AntiqueWhite" FontSize="24" Visibility="Collapsed" ></TextBlock>
                        <TextBlock x:Name="tblkBTotsumary"  Width="270"  Margin="2,5,0,0" Foreground="AntiqueWhite" FontSize="24" TextWrapping="Wrap"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="0" Margin="0,10,0,0">
                        <ListBox x:Name="lbxteamBsummary"  Margin="0,0,0,0" ScrollViewer.VerticalScrollBarVisibility="Disabled" Foreground="White">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <Grid Height="75">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="150"/>
                                            <ColumnDefinition Width="100"/>
                                        </Grid.ColumnDefinitions>
                                    <TextBlock Grid.Column="0" x:Name="txtblk" Text="{Binding PlayerName}" FontSize="24" TextWrapping="Wrap"/>
                                        <TextBlock Grid.Column="1" x:Name="txtblk2" Text="{Binding Runs}" FontSize="24" Margin="20,0,0,0"/>
                                    </Grid>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Grid.Row="4" Margin="0,10,0,0" Grid.Column="1">
                        <ListBox x:Name="lbxteamAsummarybowling" Grid.Row="13" Margin="0,0,0,0" ScrollViewer.VerticalScrollBarVisibility="Disabled" Foreground="White">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <Grid Height="75">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="150"/>
                                            <ColumnDefinition Width="70"/>
                                        </Grid.ColumnDefinitions>
                                    <TextBlock Grid.Column="0" Text="{Binding PlayerName}" FontSize="24" TextWrapping="Wrap"/>
                                    <TextBlock Grid.Column="1" Text="{Binding Wickets}" FontSize="24"/>
                                        <TextBlock Grid.Column="1"  Text="/" FontSize="24" Margin="14,0,0,0"/>
                                    <TextBlock Grid.Column="1" x:Name="txtblk3" Text="{Binding Runs}" FontSize="24" Margin="24,0,0,0"/>
                                    </Grid>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </StackPanel>

                </Grid>
            </ScrollViewer>
        <toolkit:PerformanceProgressBar VerticalAlignment="Top" x:Name="MyProgressBar1" 
                                                 IsIndeterminate="False"  Width="450"  Background="Black" Foreground="Red" HorizontalAlignment="Left">
        </toolkit:PerformanceProgressBar>
       
                <Button Grid.Row="1" x:Name="btnMatchResult"  Foreground="White"  Click="btnMatchResult_Click" Content="Fullscorecard" BorderBrush="White" Visibility="Collapsed" ScrollViewer.VerticalScrollBarVisibility="Disabled"/>
           
        </Grid>
  
</UserControl>
